package com.action.mvc.auth.context;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by Wuxiang on 2017/4/24.
 */
class ResponseContext {

    private static ThreadLocal<HttpServletResponse> tl = new ThreadLocal<HttpServletResponse>();

    public static void setCurrent(HttpServletResponse response){
        tl.set(response);
    }

    public static HttpServletResponse getCurrent(){
        return tl.get();
    }

}
